SRCS=tcpc.c tcps.c
OUTS=$(SRCS:.c=.exe)

CC = cl
CFLAGS = /nologo /MT /GX /W3 /GR- /D_WIN32_WINNT=0x0400 -I..\..\..
LDFLAGS= /libpath:..\..\bas /libpath:..\..\net 
SYSLIB=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib ws2_32.lib
LIBS=$(SYSLIB) xpbas.lib xpnet.lib 

all: $(OUTS)

.SUFFIXES: .c .exe
.c.exe:
    $(CC) -c $(CFLAGS) $<
    link /nologo /out:$*.exe $(LDFLAGS) $(LIBS) $*.obj

clean:
    del $(OUTS) *.obj *.bak *.map *.ilc *.ild *.ilf *.ils *.tds

